package com.applet.service.impl;

import com.applet.entity.ApplicationProperties;
import com.applet.mapper.*;
import com.applet.utils.common.RedisUtil;
import com.applet.utils.mq.MqUtils;
import com.applet.utils.sms.SmsUtils;
import org.springframework.beans.factory.annotation.Autowired;

public class BaseServiceImpl {

    @Autowired
    protected UserInfoMapper userInfoMapper;

    @Autowired
    protected SmsLogMapper smsLogMapper;

    @Autowired
    protected MqUtils mqUtils;

    @Autowired
    protected SmsUtils smsUtils;

    @Autowired
    protected RedisUtil redisUtil;

    @Autowired
    protected ApplicationProperties appProperties;

    public void SendMsg(String tag, String key,String msg){
        mqUtils.sendMsg(appProperties.getTopic(),tag, msg, key);
    }

}
